package com.smartStatus.security.annoation;

import com.smartStatus.security.comment.StatusResourceServerAutoConfig;
import com.smartStatus.security.comment.StatusResourceServerConfigAdapter;
import com.smartStatus.security.comment.StatusSecurityBeanFactoryBeanRegister;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

/**
 * @ClassName : EnableStatusResourceConfig
 * @Author : lby
 * @Date: 2021/5/6 21:04
 * @Description : 全局资源注入注解
 */
@Documented
@Inherited
@EnableResourceServer
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({StatusResourceServerAutoConfig.class, StatusSecurityBeanFactoryBeanRegister.class})
public @interface EnableStatusResourceConfig {
}
